<?php
namespace Models;
class Record extends Model{
    public function addRecord($student_id, $book_id, $borrow_time) {
        $sql = 'insert into records(student_id, book_id, borrow_time) values (' . $student_id . ', ' . $book_id . ', "' . $borrow_time . '")';
        return  $this->pdo->exec($sql);
    }
}